package com.m4f.city.web.controller.manager;

import java.security.Principal;
import java.util.Locale;
import java.util.logging.Logger;

import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.m4f.city.business.security.InternalUserDetailService;
import com.m4f.city.web.controller.BaseController;

@Controller
@Secured(InternalUserDetailService.ROLE_MANAGER)
@RequestMapping("/manager")
public class HomeManagerController extends BaseController {
	private static final Logger LOGGER = Logger.getLogger(HomeManagerController.class.getName());
	
	@RequestMapping(method=RequestMethod.GET)
	public String getHomeIndex(Principal user, Model model, Locale locale) {
		
		return "manager.home";
	}
	
	@RequestMapping(value="/home", method=RequestMethod.GET)
	public String getHome(Principal user, Model model, Locale locale) {
		
		return "manager.home";
	}
}
